import { ajax } from '../http.js';

const upgradeUrl = '/authc/user_upgrade_apply/upgrade';
const upgradeAmountUrl = '/authc/user_upgrade_apply/find_upgrade_amount';

const upgrade = (data, success, fail) => { // 续费/升级
  ajax({
    url: upgradeUrl,
    data: data,
    success: success,
    fail: fail
  });
};
const upgradeAmount = (data, success, fail) => { // 查询升级价格
  ajax({
    url: upgradeAmountUrl,
    data: data,
    success: success,
    fail: fail
  });
};

export {
  upgrade,
  upgradeAmount
}